{template common/header}
<!--{if empty($_G['gp_infloat'])}-->
<div id="pt" class="wp"><a href="index.php">$_G[setting][bbname]</a> $navigation</div>
<div id="ct" class="wp cl">
	<div class="mn">
<!--{/if}-->

<form id="payform" method="post" autocomplete="off" action="forum.php?mod=misc&action=pay&paysubmit=yes&infloat=yes"{if !empty($_G['gp_infloat'])} onsubmit="ajaxpost('payform', 'return_$_G['gp_handlekey']', 'return_$_G['gp_handlekey']', 'onerror');return false;"{/if}>
<div class="f_c">
	<h3 class="flb">
		<em id="return_$_G['gp_handlekey']">{lang pay}</em>
		<span>
			<!--{if !empty($_G['gp_infloat'])}--><a href="javascript:;" class="flbc" onclick="hideWindow('$_G['gp_handlekey']')" title="{lang close}">{lang close}</a><!--{/if}-->
		</span>
	</h3>	
	<input type="hidden" name="formhash" value="{FORMHASH}" />
	<input type="hidden" name="referer" value="$_G['referer']" />
	<input type="hidden" name="tid" value="$_G[tid]" />
	<!--{if !empty($_G['gp_infloat'])}--><input type="hidden" name="handlekey" value="$_G['gp_handlekey']" /><!--{/if}-->
	<div class="c"><table class="list" cellspacing="0" cellpadding="0" style="width:200px">
		<tr>
			<th>{lang author}</th>
			<td><a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">$thread[author]</a></td>
		</tr>
		<tr>
			<th valign="top">{lang price}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]})</th>
			<td>$thread[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</td>
		</tr>
		<tr>
			<th valign="top">{lang pay_author_income}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]})</th>
			<td>$thread[netprice] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</td>
		</tr>
		<tr>
			<th valign="top">{lang pay_balance}({$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]})</th>
			<td>$balance {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}</td>
		</tr>
	</table></div>
</div>
<div class="o pns">
	<button class="pn pnc" type="submit" name="paysubmit" value="true"><span>{lang submit}</span></button>
</div>
</form>

<!--{if !empty($_G['gp_infloat'])}-->
<script type="text/javascript" reload="1">
function succeedhandle_$_G['gp_handlekey'](locationhref) {
	ajaxget('forum.php?mod=viewthread&tid=$_G[tid]&viewpid=$_G[gp_pid]', 'post_$_G[gp_pid]');
	hideWindow('$_G['gp_handlekey']');
	showCreditPrompt();
}
</script>
<!--{/if}-->

<!--{if empty($_G['gp_infloat'])}-->
	</div>
</div>
<!--{/if}-->
{template common/footer}